google.load('visualization', '1.0', {'packages':['corechart']}); google.setOnLoadCallback(function(){ var data = new google.visualization.DataTable(); data.addColumn('string', '日'); data.addColumn('number', 'DL数'); data.addColumn('number', 'Googleセルラン'); data.addColumn('number', 'iOSセルラン'); data.addColumn({type:'string', role:'annotation'}); data.addColumn({type:'string', role:'annotationText'}); data.addRows([ ['2022-01-30',279742,null,null,null,null], ['2022-01-31',279742,null,null,null,null], ['2022-02-01',279815,null,null,null,null], ['2022-02-02',279826,null,null,null,null], ['2022-02-03',279826,null,null,null,null], ['2022-02-04',279841,null,null,null,null], ['2022-02-05',279841,null,null,null,null], ['2022-02-06',279849,null,null,null,null], ['2022-02-07',279854,null,null,null,null], ['2022-02-08',279860,null,null,null,null], ['2022-02-09',279871,null,null,null,null], ['2022-02-10',279878,null,null,null,null], ['2022-02-11',279878,null,null,null,null], ['2022-02-12',279878,null,null,null,null], ['2022-02-13',279878,null,null,null,null], ['2022-02-14',279878,null,null,null,null], ['2022-02-15',279878,null,null,null,null], ['2022-02-16',279878,null,null,null,null], ['2022-02-17',279915,null,null,null,null], ['2022-02-18',279919,null,null,null,null], ['2022-02-19',279919,null,null,null,null], ['2022-02-20',279927,null,null,null,null], ['2022-02-21',279933,null,null,null,null], ['2022-02-22',279949,null,null,null,null], ['2022-02-23',279949,null,null,null,null], ['2022-02-24',279949,null,null,null,null], ['2022-02-25',279949,null,null,null,null], ['2022-02-26',279949,null,null,null,null], ['2022-02-27',279949,null,null,null,null], ['2022-02-28',279949,null,null,null,null], ['2022-03-01',279949,null,null,null,null], ['2022-03-02',279949,null,null,null,null], ['2022-03-03',279949,null,null,null,null], ['2022-03-04',279949,null,null,null,null], ['2022-03-05',279949,null,null,null,null], ['2022-03-06',279949,null,null,null,null], ['2022-03-07',279949,null,null,null,null], ['2022-03-08',279949,null,null,null,null], ['2022-03-09',280021,null,null,null,null], ['2022-03-10',280021,null,null,null,null], ['2022-03-11',280021,null,null,null,null], ['2022-03-12',280021,null,null,null,null], ['2022-03-13',280021,null,null,null,null], ['2022-03-14',280021,null,null,null,null], ['2022-03-15',280021,null,null,null,null], ['2022-03-16',280021,null,null,null,null], ['2022-03-17',280021,null,null,null,null], ['2022-03-18',280089,null,null,null,null], ['2022-03-19',280094,null,null,null,null], ['2022-03-20',280100,null,null,null,null], ['2022-03-21',280100,null,null,null,null], ['2022-03-22',280100,null,null,null,null], ['2022-03-23',280115,null,null,null,null], ['2022-03-24',280115,null,null,null,null], ['2022-03-25',280115,null,null,null,null], ['2022-03-26',280115,null,null,null,null], ['2022-03-27',280115,null,null,null,null], ['2022-03-28',280115,null,null,null,null], ['2022-03-29',280115,null,null,null,null], ['2022-03-30',280115,null,null,null,null], ['2022-03-31',280115,null,null,null,null] ]); var options = { chartArea: {'width':'85%', 'height':'65%', 'left':60 }, 'pointSize': 3, legend: {position: 'top' }, vAxes:[ {direction:1}, {direction:-1,viewWindow:{min:0,max:0}} ], series: { 0:{ type: 'bars', color: 'skyblue', targetAxisIndex: 0, }, 1:{ type: 'line', color: 'seagreen', targetAxisIndex: 1, }, 2:{ type: 'line', color: 'red', targetAxisIndex: 1, }, }, tooltip: { trigger: 'both' }, focusTarget: 'category', colors:['#2980b9','#e74c3c'] }; var chart = new google.visualization.ComboChart(document.getElementById('graphField')); chart.draw(data, options); google.visualization.events.addListener(chart, 'click', function() { if(chart.getSelection()[0]){ chart.setSelection(null) } }); });